<?php
session_start();
include_once("connexion.php");
include('menu.php');

if ( !isset($_SESSION["user_id"])) { //vérifie si on est connecté pour afficher la page
    header("location:login.php");
}

$query =" SELECT u.user_nom, u.user_prenom, u.user_mail, u.user_pwd, u.user_tel1, u.user_tel2, u.utype_id, l.utype_lib FROM user u JOIN usertype l ON u.utype_id = l.utype_id WHERE user_id = ".$_SESSION['user_id']." ";

$userList = mysqli_query($connexion, $query);



include("profil.html");



?>